Properly close dep_feature_in_cmd_line test.
authorJuan Hernández <juan.hernandez.babon@gmail.com>
Sat, 10 Sep 2016 21:25:23 +0000 (17:25 -0400)
committerJuan Hernández <juan.hernandez.babon@gmail.com>
Sat, 10 Sep 2016 21:25:23 +0000 (17:25 -0400)
It was including the test all_features_flag_enables_all_features
inside its function body.

tests/features.rs

index a6921de381474b4202f170f464b7c8273415ac39..449e1f9c8c7ae7a0cb9fffb8dfcff1301dab2821 100644 (file)
@@ -960,6 +960,7 @@ fn dep_feature_in_cmd_line() {
                 execs().with_status(101).with_stderr("\
 [ERROR] feature names may not contain slashes: `bar/some-feat`
 "));
+}
 
 #[test]
 fn all_features_flag_enables_all_features() {
@@ -1004,4 +1005,3 @@ fn all_features_flag_enables_all_features() {
     assert_that(p.cargo_process("build").arg("--all-features"),
                 execs().with_status(0));
 }
-}